Skip to content

feat(activity): show for org members#1052

Open
nicolaskempf57 wants to merge 3 commits intomainfrom
feat/activity-for-org-admins
Open

feat(activity): show for org members#1052
nicolaskempf57 wants to merge 3 commits intomainfrom
feat/activity-for-org-admins

Conversation

@nicolaskempf57
Copy link
Copy Markdown
Contributor

No description provided.

@nicolaskempf57 nicolaskempf57 changed the title Feat/activity for org admins feat(activity): show for org admins Apr 17, 2026
Copy link
Copy Markdown
Contributor

@ThibaudDauce ThibaudDauce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't work on my machine but maybe not linked to this PR. Seems to have weird side effects with currentOrganization

Comment thread components/TabLinks.vue
Comment on lines +35 to 43
const requiredOrganizationPermission = route.meta.requiredOrganizationPermission as (keyof OrganizationReference['permissions'] | undefined) ?? null
if (requiredOrganizationPermission) {
const { currentOrganization } = useCurrentOwned()
if (currentOrganization.value) {
return currentOrganization.value.permissions[requiredOrganizationPermission] ?? false
}

return false
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here… Visiting http://dev.local:3000/admin/datasets/66a7aad2d369533b90b4eb38 with SSR is working (I see the Activities tab) but without SSR while navigating it seems that currentOrganization is null so I don't have the tab… Not sure why…

Comment thread middleware/auth.ts
if (!permissionValue) {
throw createError({ statusCode: 401, statusMessage: 'Unauthorized' })
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure this middleware is doing something. I can visit http://dev.local:3000/admin/datasets/6727201449625899ea32c0d4/activities without triggering (with the production backend, without being super-admin) because I think currentOrganization.value is null

@maudetes
Copy link
Copy Markdown
Contributor

As discussed, activities should show for all members (not only admin)

@nicolaskempf57 nicolaskempf57 changed the title feat(activity): show for org admins feat(activity): show for org members Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants